Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
I recently figured out how to launch applications in sway on login (or config reload) in specific workspaces. I tried doing this a year or so ago using procedural calls to swaymsg with manual changes to workspaces but it failed due to the delay in launching apps (the workspace would change too quickly). However, I recently figured out how to actually do it by combining swaymsg with assign.
First, you'll want to get the app_id, class or title of window you want to launch. Then you'll want to add it to the your sway config file.
The syntax looks like:
/** | |
* Wrapper function with modern JS. May have issues with IE and Safari. | |
* Will preserve event handlers. | |
* @param {ChildNode} elToWrap The element you want to wrap. | |
* @param {ParentNode} wrapper The element to wrap with. | |
*/ | |
const wrap = (elToWrap, wrapper) => { | |
elToWrap.before(wrapper) // so element doesn't move | |
wrapper.append(elToWrap) // automatically moves wrapped element. | |
} |
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
import Foundation | |
class TaskManager { | |
static let shared = TaskManager() | |
let session = URLSession(configuration: .default) | |
typealias completionHandler = (Data?, URLResponse?, Error?) -> Void | |
var tasks = [URL: [completionHandler]]() |
// https://piccalil.li/blog/a-modern-css-reset | |
/* Box sizing rules */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* Remove default margin */ |
This is not working complete code.
This is strictly a v0.2, scrapy, proof of concept version of a personal AI Assistant working end to end in just ~726 LOC.
This is the second iteration showcasing the two-way prompt aka multi-step human in the loop. The initial, v0, assistant version is here.
It's only a frame of reference for you to consume the core ideas of how to build a POC of a personal AI Assistant.
To see the high level of how this works check out the explanation video. To follow our agentic journey check out the @IndyDevDan channel.
import jwt from "jsonwebtoken"; | |
import uuid from "uuid"; | |
import config from "../../../config"; | |
import { DeviceCheckService, DeviceCheckParams } from "./DeviceCheckService"; | |
import BaseService from "./BaseService"; | |
export class AppleDeviceCheckService extends BaseService implements DeviceCheckService { |